package cn.ds.assets.module.assets.controller.admin.dataQualityRule.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.ds.assets.framework.common.pojo.PageParam;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.ds.assets.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 数据质量规则 Excel 导出 Request VO，参数和 BaseDataQualityRulePageReqVO 是一致的")
@Data
public class BaseDataQualityRuleExportReqVO {

    @Schema(description = "主键id")
    private Long[] ids;

    @Schema(description = "规则名称", example = "芋艿")
    private String ruleName;

    @Schema(description = "规则描述")
    private String ruleDescribe;

    @Schema(description = "规则内容")
    private String ruleContent;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "规则状态", example = "2")
    private Integer ruleStatus;

    @Schema(description = "项目id", example = "6680")
    private Long projectId;

    @Schema(description = "目标库")
    private String targetDb;

    @Schema(description = "目标表")
    private String targetTable;

    @Schema(description = "目标字段")
    private String targetColumn;

    @Schema(description = "校验规则")
    private String checkRule;

    @Schema(description = "规则类型", example = "1")
    private String ruleType;

    @Schema(description = "质量维度")
    private String qualityDimension;

    @Schema(description = "规则类别:0通用,1自定义")
    private Byte ruleGenre;

}
